Spring读取外部的资源配置文件—@PropertySource和@Value实现资源文件配置
通过@PropertySource可以指定读取的配置文件,通过@Value注解获取值; @PropertySource注解主要是让Spring的Environment接口读取属性配置文件用的,标识在@ ...
通过@PropertySource可以指定读取的配置文件,通过@Value注解获取值; @PropertySource注解主要是让Spring的Environment接口读取属性配置文件用的,标识在@ ...